package com.mapull.enums;

import java.util.EnumMap;
import java.util.Map;

/**
 * @author Mapull
 * @date 2021/09/15
 * @description EnumBasic
 */
public class EnumBasic {

    public static void main(String[] args) {
        Map enumMap = new EnumMap<Direction, String>(Direction.class);

        enumMap.put(Direction.EAST, Direction.EAST.getAngle());
        enumMap.put(Direction.WEST, Direction.WEST.getAngle());
        enumMap.put(Direction.NORTH, Direction.NORTH.getAngle());
        enumMap.put(Direction.SOUTH, null);
    }
}
